package org.bjf.modules.core.web.controller;

import static org.bjf.exception.CommMsgCode.NOT_FOUND;

import org.bjf.modules.core.web.core.LiveResp;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RestErrorController {

  @RequestMapping("/404")
  public LiveResp notFound() {
    LiveResp resp = new LiveResp();
    resp.setCode(NOT_FOUND.getCode());
    resp.setMsg(NOT_FOUND.getMessage());
    return resp;
  }
}